<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>彩票规律设置</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f5f5f5;
            font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        }

        .form-container {
            width: 360px;
            padding: 30px;
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        }

        h2 {
            text-align: center;
            margin-bottom: 24px;
            color: #333;
        }

        form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        label {
            font-size: 14px;
            color: #333;
            margin-bottom: 6px;
        }

        select, input[type="number"] {
            padding: 8px 12px;
            font-size: 14px;
            border: 1px solid #ccc;
            border-radius: 6px;
            outline: none;
            width: 100%;
            box-sizing: border-box;
        }

        select:focus, input[type="number"]:focus {
            border-color: #1890ff;
            box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
        }

        button {
            padding: 10px 0;
            background-color: #1890ff;
            color: #fff;
            font-size: 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        button:hover {
            background-color: #40a9ff;
        }

        /* 响应式 */
        @media (max-width: 400px) {
            .form-container {
                width: 90%;
                padding: 20px;
            }
        }
    </style>
</head>
<body>

<div class="form-container">
    <h2>设置彩票规律</h2>
    <form action="{{ route('lottery.index') }}" method="GET">
        <div>
            <label for="type">规律类型</label>
            <select name="type" id="type" required>
                <option value="1" selected>胆码规</option>
                <option value="2">毒胆规</option>
                <option value="3">杀百十和尾</option>
                <option value="4">杀百个和尾</option>
                <option value="5">杀十个和尾</option>
            </select>
        </div>
        <div>
            <label for="minConsecutive">规律至少连续走了多少次</label>
            <input type="number" id="minConsecutive" name="minConsecutive" min="1" value="7" required>
        </div>
        <div>
            <label for="analyzePeriods">规律分析几期</label>
            <input type="number" id="analyzePeriods" name="analyzePeriods" min="1" value="3" required>
        </div>
        <div>
            <label for="combinationSize">抓规需要用到几个数字</label>
            <input type="number" id="combinationSize" name="combinationSize" min="1" value="3" required>
        </div>
        <div>
            <label for="intervalPeriods">规律间隔几期</label>
            <input type="number" id="intervalPeriods" name="intervalPeriods" min="0" value="0" required>
        </div>
        <button type="submit">确认</button>
    </form>
</div>

</body>
</html>
